﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x02001215 RID: 4629
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class StartFightFestScRsp : IMessage<StartFightFestScRsp>, IMessage, IEquatable<StartFightFestScRsp>, IDeepCloneable<StartFightFestScRsp>, IBufferMessage
	{
		// Token: 0x17003AA9 RID: 15017
		// (get) Token: 0x0600CF7E RID: 53118 RVA: 0x0022EFDB File Offset: 0x0022D1DB
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<StartFightFestScRsp> Parser
		{
			get
			{
				return StartFightFestScRsp._parser;
			}
		}

		// Token: 0x17003AAA RID: 15018
		// (get) Token: 0x0600CF7F RID: 53119 RVA: 0x0022EFE2 File Offset: 0x0022D1E2
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return StartFightFestScRspReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x17003AAB RID: 15019
		// (get) Token: 0x0600CF80 RID: 53120 RVA: 0x0022EFF4 File Offset: 0x0022D1F4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return StartFightFestScRsp.Descriptor;
			}
		}

		// Token: 0x0600CF81 RID: 53121 RVA: 0x0022EFFB File Offset: 0x0022D1FB
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public StartFightFestScRsp()
		{
		}

		// Token: 0x0600CF82 RID: 53122 RVA: 0x0022F004 File Offset: 0x0022D204
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public StartFightFestScRsp(StartFightFestScRsp other) : this()
		{
			this.id_ = other.id_;
			this.battleInfo_ = ((other.battleInfo_ != null) ? other.battleInfo_.Clone() : null);
			this.eventId_ = other.eventId_;
			this.retcode_ = other.retcode_;
			this.type_ = other.type_;
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x0600CF83 RID: 53123 RVA: 0x0022F074 File Offset: 0x0022D274
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public StartFightFestScRsp Clone()
		{
			return new StartFightFestScRsp(this);
		}

		// Token: 0x17003AAC RID: 15020
		// (get) Token: 0x0600CF84 RID: 53124 RVA: 0x0022F07C File Offset: 0x0022D27C
		// (set) Token: 0x0600CF85 RID: 53125 RVA: 0x0022F084 File Offset: 0x0022D284
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint Id
		{
			get
			{
				return this.id_;
			}
			set
			{
				this.id_ = value;
			}
		}

		// Token: 0x17003AAD RID: 15021
		// (get) Token: 0x0600CF86 RID: 53126 RVA: 0x0022F08D File Offset: 0x0022D28D
		// (set) Token: 0x0600CF87 RID: 53127 RVA: 0x0022F095 File Offset: 0x0022D295
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public SceneBattleInfo BattleInfo
		{
			get
			{
				return this.battleInfo_;
			}
			set
			{
				this.battleInfo_ = value;
			}
		}

		// Token: 0x17003AAE RID: 15022
		// (get) Token: 0x0600CF88 RID: 53128 RVA: 0x0022F09E File Offset: 0x0022D29E
		// (set) Token: 0x0600CF89 RID: 53129 RVA: 0x0022F0A6 File Offset: 0x0022D2A6
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint EventId
		{
			get
			{
				return this.eventId_;
			}
			set
			{
				this.eventId_ = value;
			}
		}

		// Token: 0x17003AAF RID: 15023
		// (get) Token: 0x0600CF8A RID: 53130 RVA: 0x0022F0AF File Offset: 0x0022D2AF
		// (set) Token: 0x0600CF8B RID: 53131 RVA: 0x0022F0B7 File Offset: 0x0022D2B7
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint Retcode
		{
			get
			{
				return this.retcode_;
			}
			set
			{
				this.retcode_ = value;
			}
		}

		// Token: 0x17003AB0 RID: 15024
		// (get) Token: 0x0600CF8C RID: 53132 RVA: 0x0022F0C0 File Offset: 0x0022D2C0
		// (set) Token: 0x0600CF8D RID: 53133 RVA: 0x0022F0C8 File Offset: 0x0022D2C8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public FightFestType Type
		{
			get
			{
				return this.type_;
			}
			set
			{
				this.type_ = value;
			}
		}

		// Token: 0x0600CF8E RID: 53134 RVA: 0x0022F0D1 File Offset: 0x0022D2D1
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as StartFightFestScRsp);
		}

		// Token: 0x0600CF8F RID: 53135 RVA: 0x0022F0E0 File Offset: 0x0022D2E0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(StartFightFestScRsp other)
		{
			return other != null && (other == this || (this.Id == other.Id && object.Equals(this.BattleInfo, other.BattleInfo) && this.EventId == other.EventId && this.Retcode == other.Retcode && this.Type == other.Type && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x0600CF90 RID: 53136 RVA: 0x0022F160 File Offset: 0x0022D360
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.Id != 0U)
			{
				num ^= this.Id.GetHashCode();
			}
			if (this.battleInfo_ != null)
			{
				num ^= this.BattleInfo.GetHashCode();
			}
			if (this.EventId != 0U)
			{
				num ^= this.EventId.GetHashCode();
			}
			if (this.Retcode != 0U)
			{
				num ^= this.Retcode.GetHashCode();
			}
			if (this.Type != FightFestType.None)
			{
				num ^= this.Type.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x0600CF91 RID: 53137 RVA: 0x0022F206 File Offset: 0x0022D406
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x0600CF92 RID: 53138 RVA: 0x0022F20E File Offset: 0x0022D40E
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x0600CF93 RID: 53139 RVA: 0x0022F218 File Offset: 0x0022D418
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.Type != FightFestType.None)
			{
				output.WriteRawTag(16);
				output.WriteEnum((int)this.Type);
			}
			if (this.battleInfo_ != null)
			{
				output.WriteRawTag(34);
				output.WriteMessage(this.BattleInfo);
			}
			if (this.Retcode != 0U)
			{
				output.WriteRawTag(40);
				output.WriteUInt32(this.Retcode);
			}
			if (this.Id != 0U)
			{
				output.WriteRawTag(72);
				output.WriteUInt32(this.Id);
			}
			if (this.EventId != 0U)
			{
				output.WriteRawTag(96);
				output.WriteUInt32(this.EventId);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x0600CF94 RID: 53140 RVA: 0x0022F2C8 File Offset: 0x0022D4C8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.Id != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.Id);
			}
			if (this.battleInfo_ != null)
			{
				num += 1 + CodedOutputStream.ComputeMessageSize(this.BattleInfo);
			}
			if (this.EventId != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.EventId);
			}
			if (this.Retcode != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.Retcode);
			}
			if (this.Type != FightFestType.None)
			{
				num += 1 + CodedOutputStream.ComputeEnumSize((int)this.Type);
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x0600CF95 RID: 53141 RVA: 0x0022F368 File Offset: 0x0022D568
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(StartFightFestScRsp other)
		{
			if (other == null)
			{
				return;
			}
			if (other.Id != 0U)
			{
				this.Id = other.Id;
			}
			if (other.battleInfo_ != null)
			{
				if (this.battleInfo_ == null)
				{
					this.BattleInfo = new SceneBattleInfo();
				}
				this.BattleInfo.MergeFrom(other.BattleInfo);
			}
			if (other.EventId != 0U)
			{
				this.EventId = other.EventId;
			}
			if (other.Retcode != 0U)
			{
				this.Retcode = other.Retcode;
			}
			if (other.Type != FightFestType.None)
			{
				this.Type = other.Type;
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x0600CF96 RID: 53142 RVA: 0x0022F40C File Offset: 0x0022D60C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x0600CF97 RID: 53143 RVA: 0x0022F418 File Offset: 0x0022D618
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num <= 34U)
				{
					if (num == 16U)
					{
						this.Type = (FightFestType)input.ReadEnum();
						continue;
					}
					if (num == 34U)
					{
						if (this.battleInfo_ == null)
						{
							this.BattleInfo = new SceneBattleInfo();
						}
						input.ReadMessage(this.BattleInfo);
						continue;
					}
				}
				else
				{
					if (num == 40U)
					{
						this.Retcode = input.ReadUInt32();
						continue;
					}
					if (num == 72U)
					{
						this.Id = input.ReadUInt32();
						continue;
					}
					if (num == 96U)
					{
						this.EventId = input.ReadUInt32();
						continue;
					}
				}
				this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
			}
		}

		// Token: 0x04005334 RID: 21300
		private static readonly MessageParser<StartFightFestScRsp> _parser = new MessageParser<StartFightFestScRsp>(() => new StartFightFestScRsp());

		// Token: 0x04005335 RID: 21301
		private UnknownFieldSet _unknownFields;

		// Token: 0x04005336 RID: 21302
		public const int IdFieldNumber = 9;

		// Token: 0x04005337 RID: 21303
		private uint id_;

		// Token: 0x04005338 RID: 21304
		public const int BattleInfoFieldNumber = 4;

		// Token: 0x04005339 RID: 21305
		private SceneBattleInfo battleInfo_;

		// Token: 0x0400533A RID: 21306
		public const int EventIdFieldNumber = 12;

		// Token: 0x0400533B RID: 21307
		private uint eventId_;

		// Token: 0x0400533C RID: 21308
		public const int RetcodeFieldNumber = 5;

		// Token: 0x0400533D RID: 21309
		private uint retcode_;

		// Token: 0x0400533E RID: 21310
		public const int TypeFieldNumber = 2;

		// Token: 0x0400533F RID: 21311
		private FightFestType type_;
	}
}
